package com.zx.zxblog.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zx.zxblog.entity.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * className=Blog
 * package=com.zx.zxblog.entity.pojo
 * description:
 *
 * @Author:SKEZhi
 * @Create:2024/4/4 - 21:44
 * @Version: v1.0
 */
@TableName(value ="t_blog")
@Data
public class Blog extends BaseEntity implements Serializable  {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 博文标题
     */

    private String title;

    /**
     * 博文内容
     */

    private String content;

    /**
     * 博文描述
     */

    private String description;

    /**
     * 博文首图
     */

    private String firstPicture;

    /**
     * 是否允许评论
     */

    private Boolean commentabled;

    /**
     * 是否开启赞赏
     */

    private Boolean appreciation;

    /**
     * 是否发布
     */
    private Boolean published;

    /**
     * 是否推荐
     */

    private Boolean recommend;

    /**
     * 是否开启转载声明
     */

    private Boolean shareStatement;

    /**
     * 版权类型
     */

    private Integer copyright;

    /**
     * 浏览次数
     */
    private Integer views;

    /**
     * 评论数量
     */
    private Integer commentCount;




}
